const {getAll,addUser,getUserById,updateUserById,deleteUserById,login}
            = require("../controllers/user")

module.exports = function (router) {
    router.get("/getAll",getAll)
    router.post("/addUser",addUser) //注册
    router.post("/login",login) //登录
    router.get("/:id",getUserById)
    router.put("/:id",updateUserById)
    router.delete("/:id",deleteUserById)
}